package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class StoreInfoJsonBean implements Serializable, IJsonParser{

	/**
	 * {
    "headers": {
        "version": 2
    },
    "need_receive": false,
    "store": {
        "province": "北京市",
        "store_id": 3,
        "district": "海淀区",
        "business_scope": "门店经营范围",
        "store_name": "门店3号店",
        "phone": "门店电话",
        "city": "北京市",
        "file": {
            "file_url": "http://imgs.ykdllmyr.com/storecards/2014/10/28/9sfWW6VmR9SHjwtNcJbju4.jpeg",
            "file_id": 6465464
        },
        "address": "门店地址",
        "coordinate": {
            "coordinate_y": 0.2,
            "coordinate_x": 0.2
        },
        "member_right": "会员权利\n 1.test1\n 2.test2\n 3.abcdefg"
    }
}
	 */
	private static final long serialVersionUID = 1L;
	private boolean need_receive;
	private String member_right ;
	private StoreInfoBean store ;
	private String desc ;
	private String error ;
	private String member_right_intro;
	private String store_name;
	private String distance;
	private String store_id ;
	private String name;
	private String store_address;
	private String phone;
	private String address;
	public String getStore_address() {
		return store_address;
	}
	public String getPhone() {
		return phone;
	}
	public String getAddress() {
		return address;
	}
	public String getMember_right_intro() {
		return member_right_intro;
	}
	public String getStore_name() {
		return store_name;
	}
	public String getDistance() {
		return distance;
	}
	public String getStore_id() {
		return store_id;
	}
	public String getName() {
		return name;
	}
	public String getDesc() {
		return desc;
	}
	public String getError() {
		return error;
	}
	public boolean getNeed_receive() {
		return need_receive;
	}
	public String getMember_right() {
		return member_right;
	}
	public StoreInfoBean getStore() {
		return store;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, StoreInfoJsonBean.class);
		}
		return null;
	}

}
